package com.demo10;

/**
 * Created by Administrator on 2017/4/14.
 */
public class GetSum {
    public static void main(String[] args) {
        int x = 1;
        int sum = 0;
        while (x <= 10) {
            sum = sum + x;
            x++;
        }
        System.out.println("sum=" + sum);
        int a = 100;
        while (a == 60) {
            System.out.println("ok1");
            a--;
        }
        int b = 100;
        do {
            System.out.println("ok2");
            b--;
        } while (b >= 90);
    }
}
